
import Relay from "react-relay";
export default class saveProMaterialDetail extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { saveProMaterialDetail }`;
    }

    getVariables() { 
        return {
            argsInput: {
                proMaterialIds: this.props.proMaterialIds,
                proMaterialDetailsJSON: this.props.proMaterialDetailsJSON
            }
        }
    }

    getFatQuery() {
        return Relay.QL`fragment on saveProMaterialDetailPayload{
            responseData {
                errorCode
                value
                totalResult
                id
            }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
               fragment on saveProMaterialDetailPayload  {
                    responseData {
                        errorCode
                        value
                        totalResult
                        id
                    }
                 }
            `]
        }];
    }

}
